package com.ruoyi.vote.admin.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 广告管理业务对象 vote_advertisement
 *
 * @author 筑巢
 * @date 2023-07-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class VoteAdvertisementBo extends BaseEntity {

    /**
     * 广告ID
     */
    @NotNull(message = "广告ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 位置
     */
    @NotBlank(message = "位置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weizhi;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 关联广告ID
     */
    @NotNull(message = "关联广告ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long gianggaoid;


}
